第12 步:如果球撞到砖块怎么办?砖应该消失!
- 在碰撞事件中,找到第二个 if 行···· if · my_var · == · “green” : ¬ 。将"green"更改为"blue".
- 如果hit_sprite的颜色为蓝色,则球击中了砖块!
- 删除这一行········ sprite 。 say( "Goal!" ) ¬从第二个 if 语句中。
- 从在 if 语句中添加Remove Sprite 。将参数更改为hit_sprite 。
To navigate the page using the TAB key, first press ESC to exit the code editor.